﻿#ifndef DROPEATER_H
#define DROPEATER_H

#include <QObject>
#include <QDropEvent>

class DropEater : public QObject
{
    Q_OBJECT
public:
    explicit DropEater(std::function<bool(QDropEvent*)> func, QObject *parent = nullptr);

private:
    std::function<bool(QDropEvent*)> m_func;

    // QObject interface
public:
    bool eventFilter(QObject *watched, QEvent *event);
};

#endif // DROPEATER_H
